package com.qys.livesMall.shortVideo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.shortVideo.model.dto.app.AppVideoUserDTO;
import com.qys.livesMall.shortVideo.model.entity.ShortVideoUser;
import com.qys.livesMall.shortVideo.model.vo.app.AppUserCollectionLikeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 短视频用户关联表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2023-05-29
 */
public interface ShortVideoUserMapper extends BaseMapper<ShortVideoUser> {


    /**
     * 查询用户收藏/点赞短视频信息
     *
     * @param videoUserDTO {@link AppVideoUserDTO}
     */
    List<AppUserCollectionLikeVO> pageByApp(Page<AppUserCollectionLikeVO> page, @Param("videoUserDTO") AppVideoUserDTO videoUserDTO);
}
